package framework.mapstruct;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @author ME
 * @date 2020/11/3
 */
public class AttributePo {

    private double price;
    private String color;

    public AttributePo() {
    }

    public AttributePo(double price, String color) {
        this.price = price;
        this.color = color;
    }

    public double getPrice() {
        return this.price;
    }

    public String getColor() {
        return this.color;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public static AttributePo.AttributePoBuilder builder() {
        return new AttributePo.AttributePoBuilder();
    }

    public static class AttributePoBuilder {
        private double price;
        private String color;

        AttributePoBuilder() {
        }

        public AttributePo.AttributePoBuilder price(double price) {
            this.price = price;
            return this;
        }

        public AttributePo.AttributePoBuilder color(String color) {
            this.color = color;
            return this;
        }

        public AttributePo build() {
            return new AttributePo(this.price, this.color);
        }

        @Override
        public String toString() {
            return "AttributePo.AttributePoBuilder(price=" + this.price + ", color=" + this.color + ")";
        }
    }

}
